package com.zmn.uac.common.info.wechat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：微信授权登陆请求对象
 *
 * @author xujie
 * @since 2021/06/11 9:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("微信授权登陆请求对象")
public class WeChatUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "code不能为空")
    @ApiModelProperty(value = "code", required = true)
    private String code;

    @NotNull(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称", required = true)
    private String nickName;

    @ApiModelProperty(value = "头像", required = true)
    private String avatarUrl;

    @ApiModelProperty("性别")
    private Integer gender;

    @ApiModelProperty("语言")
    private String language;


}
